package com.maimao.goods.config;

import org.springframework.security.core.Authentication;
import org.springframework.security.oauth2.provider.authentication.BearerTokenExtractor;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

/**
 * @author MaoLin Wang
 * @date 2021/1/3 10:41 下午
 */
/*//@Component
public class CusBearerTokenExtrator extends BearerTokenExtractor {

    @Override
    public Authentication extract(HttpServletRequest request) {
        String header = request.getHeader("maimao-feign");
        if (header != null) {
            return null;
        }
        return super.extract(request);
    }
}*/
